package org.ilead.iserve.service;

import java.util.List;

import org.ilead.iserve.model.SystemMessage;
import org.ilead.iserve.model.UserSystemMessageAssociate;

public interface ISystemMessageService {
	void addMessage(SystemMessage message);
	
	List<SystemMessage> findByUserId(int userId);
	
	UserSystemMessageAssociate findByUserIdAndMessageId(int userId, int messageId);
	
	int findUnReadCountByUserId(int userId);
	
	void deleteMessage(int userId, int messageId);
	
	void updateMessageState(int userId, int messageId, int state);
	
	void saveOrUpdateMessage(UserSystemMessageAssociate associate);
	
}
